package com.virus.mall.dao;

import com.virus.mall.model.Admin;
import com.virus.mall.model.AdminChange;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname AdminDao
 * @Description NULL
 * @Date 2021/4/13 14:17
 * @Created by virus
 */
public interface AdminDao {

    int login(@Param("admin") Admin admin);

    List<Admin> allAdmins();

    List<Admin> getSearchAdmins(@Param("admin") Admin admin);

    Admin getAdminsInfo(Integer id);

    Integer deleteAdmins(Integer id);

    Integer changePwd(@Param("adminChange") AdminChange adminChange);

    Integer addAdminss(@Param("admin") Admin admin);

    Integer updateAdminss(@Param("admin") Admin admin);
}
